package com.cg;

import com.cg.netty.WebSocketServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication()//exclude = DataSourceAutoConfiguration.class
@MapperScan("com.cg.mapper")
@EnableSwagger2
public class CgApplication {
    public static void main(String[] args) {

        SpringApplication.run(CgApplication.class, args);
        WebSocketServer.nettymain(null);
    }

}
